# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=admesh
pkgver=0.98.4
pkgrel=0
pkgdesc="A program for processing triangulated solid meshes"
url="https://github.com/admesh/admesh"
arch="all"
license="GPL-2.0-only"
makedepends="libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/admesh/admesh/releases/download/v$pkgver/admesh-$pkgver.tar.gz"
options="!check" # no unit tests

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0c196aea8d0c8082e28946e96bc3223f01485dcd6b1ef5f785e3274ec20976e6a2dbbd5fdad7b5a442d942a8d862c7705a5201275e87e127e09abbb1f0c33ce4  admesh-0.98.4.tar.gz
"
